package com.bob.clan.wxconnector.controller;

import com.bob.clan.wxconnector.wxService.QrService;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class QrController {
    @Autowired
    private QrService qrService;

    @GetMapping("/getQr/{sysCode}/{scene}")
    public String getQr(@PathVariable String sysCode, @PathVariable String scene) throws JsonProcessingException {
        return qrService.getArgumentQr(sysCode,scene);
    }
}
